<!DOCTYPE html>

<html lang="en">



<head>

    <meta charset="UTF-8">

    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">

    <meta http-equiv="X-UA-Compatible" content="ie=edge">

    <title>一朵 - 我的邀请码</title>

    <!-- swiper-2.7css -->

    <link rel="stylesheet" href="__STATIC__/index/js/swiper/idangerous.swiper.css">

    <!-- swiper-2.7js -->

    <script src="__STATIC__/index/js/swiper/idangerous.swiper.min.js"></script>

    <!-- jquery-3.2.1引用 -->

    <script src="__STATIC__/index/js/global/jquery-3.2.1.min.js"></script>

    <!-- 阿里巴巴矢量图库 -->

    <link rel="stylesheet" href="http://at.alicdn.com/t/font_561814_t3316kgx96kcsor.css">

    <!-- 公共头部 脚部 -->

    <link rel="stylesheet" href="__STATIC__/index/css/global/global.css">

    <!-- 超过959屏幕 -->

    <link rel="stylesheet" media="screen and (min-width: 960px)" href="__STATIC__/index/css/share/share960.css" />

    <!-- 768-959 -->

    <link rel="stylesheet" media="screen  and (min-width: 768px) and (max-width: 959px) " href="__STATIC__/index/css/share/share768.css"
    />

    <!-- 568-767 -->

    <link rel="stylesheet" media="screen  and (min-width: 568px) and (max-width: 767px) " href="__STATIC__/index/css/share/share568.css"
    />

    <!-- 375-567 -->

    <link rel="stylesheet" media="screen  and (min-width: 375px) and (max-width: 567px) " href="__STATIC__/index/css/share/share375.css"
    />

    <!-- 小于375-->

    <link rel="stylesheet" media="screen  and (max-width: 374px) " href="__STATIC__/index/css/share/share320.css" />

    <script src="__STATIC__/qrcode.js"></script>

    <script src="__STATIC__/utf.js"></script>

</head>



<body>

    <div class="M">

        <div class="m-top">

            <div class="m-header">
                <div>

                    <span onclick="go_back()">

                        <span class="iconfont icon-xiangzuo"></span>

                        返回

                    </span>

                    <span>我的邀请码</span>

                    <span>

                        {if condition="!empty($realname)"}

                        <a href="{:url('User/index')}" class="my">

                            {$realname}

                        </a>

                        {else /}

                        <a href="{:url('Login/loginin')}">登录</a>

                        <a href="{:url('Login/register')}">登录</a>

                        {/if}

                        <a href="{:url('MyCart/my_cart')}" class="car">

                            <span class="iconfont icon-gouwuche"></span>

                            <span>{$cart_num}</span>

                        </a>

                    </span>
                </div>

            </div>

        </div>

        <div class="m-share">

            <div>

                <p>分享赢积分</p>

                <p>分享二维码给好友，好友成功注册</p>

                <p>您将获得2积分</p>

                <p> 更有众多红包优惠</p>

                <p>已经成功邀请 {$user.underling_number} 人</p>

                <p>共获得 {$user.invite_point} 积分</p>

                <div id="qrcode">



                </div>

            </div>

        </div>

    </div>

    <div class="PC">

        <img src="__STATIC__/index/img/global/phone.png" alt="">

        <p>该页面只支持移动端的提示页面</p>

        <a href="{:url('User/index')}">返回</a>

    </div>

    {include file="public/share" /}

    <script>
        /**

                         * 返回上一页

                         */

        function go_back() {

            window.history.back(); //返回上一页

        }

        $(function () {

            $("#qrcode").qrcode({

                render: "canvas", //设置渲染方式，有table和canvas，使用canvas方式渲染性能相对来说比较好

                text: "{$url}", //扫描二维码后显示的内容,可以直接填一个网址，扫描二维码后自动跳向该链接

                width: "100", //二维码的宽度

                height: "100", //二维码的高度

                background: "#ffffff", //二维码的后景色

                foreground: "#000000", //二维码的前景色

                //                src:"{$logo}"                 //二维码中间的图片

            });

        });



        /**

         * 完善会员信息

         */

        function edit_member_info() {

            window.location.href = "{:url('User/my_center')}";

        }
    </script>

</body>



</html>